﻿@model IEnumerable<ModalDownload.Models.ModelTable>
@using ModalDownload.Models;
@{
    Layout = null;
}

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>@(ViewData["sitename"])全站模型搜索</title>
<style type="text/css">
<!--
a:link {
	color: #FFFFFF;
}
a:visited {
	color: #FFFFFF;
}
a:hover {
	color: #FF3333;
}
a:active {
	color: #FFFFFF;
}
a {
	font-size: 12px;
}
body,td,th {
	color: #FFFFFF;
	font-size: 12px;
}
body {
	background-color: #202020;
}
.STYLE1 {
	font-size: 50px;
	color: #FF3300;
}
.footer {
	position: absolute;
	bottom: 0;
	height: 30px;
	width: 100%;
	background:#242424;
    text-align:center;
    float:left;
}
-->
</style>
    @Styles.Render("~/Content/Home_SearchResult.css")
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="float:left;">
  <tbody><tr>
    <td height="30" align="right" valign="middle">@Html.ActionLink("首页","Index")&nbsp;|&nbsp;@Html.ActionLink("3D模型下载", "List", "Home", new {type="3d" },null)&nbsp;|&nbsp;@Html.ActionLink("贴图素材", "List", "Home", new {type="pic" },null)&nbsp;|&nbsp;@Html.ActionLink("VR材质", "List", "Home", new {type="vr" },null)</td>
  </tr>
    <tr>
    <td height="150" align="center" valign="middle"><span class="STYLE1">@ViewData["sitename"]</span></td>
  </tr>
      <tr>
    <td height="50" align="center" valign="bottom">你当前访问页面是站内搜索页面，请在下面输入框输入你需要的东西。然后点击搜索。</td>
  </tr>
      <tr>
    <td height="100" align="center" valign="middle">
@using (Html.BeginForm("SearchResult", "Home", FormMethod.Post, new { name = "SearchForm" }))
    {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
<table border="0" bgcolor="#333333">

<tbody><tr><td nowrap="nowrap" valign="top" align="left" height="32">

</td>
<td nowrap="nowrap">
    @Html.TextBox("q",null,new{ size="41",maxlength="255"})
<input type="submit" name="search" value="站内搜索"></td></tr>
<tr>
<td></td>
<td nowrap="nowrap">
<table>
<tbody><tr>
</tbody></table></td></tr></tbody></table>
}

</td>
  </tr>
      <tr>
          <td align="center">
              <table width="1040" border="0" cellspacing="0" cellpadding="0">
  <tbody><tr>
    <td align="center" valign="middle">
@if (Model.Count() == 0)
{
    <span style="font-size:x-large">没有匹配的记录</span>
}
        else
        {<span style="font-size:large;">共找到@(Model.Count())个匹配记录</span><br/>
foreach(ModelTable model in Model)
{
    
<table class="tpbt" border="0" cellspacing="0" cellpadding="0">
  <tbody><tr>
    <td height="134" align="center" valign="middle"><a href="/Home/Detail/@(model.ID)" title="@(model.title)" target="_blank"><img src="/Images/Upload/@(model.imagefilename)"></a></td>
  </tr>
  <tr>
    <td height="30" align="center" valign="middle"><a href="/Home/Detail/@(model.ID)" target="_blank">
                                @if(model.title.Length>11)
                                {
                                     @(model.title.Substring(0,11))@:...
                                }
                                else
                                {
                                    @(model.title)
                                }
                                                   </a></td>
  </tr>
</tbody></table>
}
}
</td>
</tr>
</tbody></table>
          </td>
      </tr>
      <tr>
          <td style="text-align:center;background:#242424;height:30px;">2012&nbsp;&copy;&nbsp;@ViewData["sitename"]&nbsp;@ViewData["siteurl"]&nbsp;<a href="http://www.miibeian.gov.cn/" target="_blank">@ViewData["icp"]</a></td>
      </tr>
</tbody></table>

</body></html>